export const baseUrlApi = (url: string) => `/erpPlatApi${url}`;

export const filerEmptyVal = (data: object): object => {
  let tempObj = {};
  for (const key in data) {
    if (data[key] || data[key] === 0 || data[key] === false) {
      tempObj[key] = data[key];
    }
  }
  return tempObj;
};
